package com.sh1604.duitang.adapter;

import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.view.ViewGroup;

import com.sh1604.duitang.mybean.HomeCollectDataBean;

import java.util.List;

/**
 * Created by cay on 2016/7/22.
 */
public class HomeCollectAdapter extends RecyclerView.Adapter<HomeCollectAdapter.CollectHolder> {

    private Context mContext;

    private List<HomeCollectDataBean.DataBean> mdata;

    public HomeCollectAdapter(Context mContext, List<HomeCollectDataBean.DataBean> mdata) {
        this.mContext = mContext;
        this.mdata = mdata;
    }

    @Override
    public CollectHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        return null;
    }

    @Override
    public void onBindViewHolder(CollectHolder holder, int position) {

    }

    @Override
    public int getItemCount() {
        return mdata == null ? 0 : mdata.size();
    }

    class CollectHolder extends RecyclerView.ViewHolder {
        public CollectHolder(View itemView) {
            super(itemView);
        }
    }
}
